box: set orientation style classes when setting orientation
authorCosimo Cecchi <cosimoc@gnome.org>
Fri, 11 May 2012 15:36:05 +0000 (11:36 -0400)
committerCosimo Cecchi <cosimoc@gnome.org>
Fri, 11 May 2012 15:46:59 +0000 (11:46 -0400)
Since we override the property, we have to call the internal helper
manually.

gtk/gtkbox.c

index cc0cb8a20c288b9305fcbfecb2512ca630d24389..d41d66e759785cd52e6f3ad37001bd640cf520ff 100644 (file)
@@ -81,6 +81,7 @@
 #include "gtkboxprivate.h"
 #include "gtkintl.h"
 #include "gtkorientable.h"
+#include "gtkorientableprivate.h"
 #include "gtkprivate.h"
 #include "gtktypebuiltins.h"
 #include "gtksizerequest.h"
@@ -354,6 +355,7 @@ gtk_box_set_property (GObject      *object,
     {
     case PROP_ORIENTATION:
       private->orientation = g_value_get_enum (value);
+      _gtk_orientable_set_style_classes (GTK_ORIENTABLE (box));
       gtk_widget_queue_resize (GTK_WIDGET (box));
       break;
     case PROP_SPACING: